package com.wuhunyu.entities.pojo;

import lombok.Data;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 课程
 *
 * @author wuhunyu
 * @version 1.0
 * @date 2021-01-16 21:54
 */
@Data
public class Subject implements Serializable {

    private String id;

    private String title;

    private String parentId;

    private List<Subject> children = new ArrayList<>();

    public Subject(String id, String title, String parentId) {
        this.id = id;
        this.title = title;
        this.parentId = parentId;
    }

    public Subject(String id, String title, String parentId, List<Subject> children) {
        this.id = id;
        this.title = title;
        this.parentId = parentId;
        this.children = children;
    }
}
